package org.liurq.activemqspring.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.config.DefaultJmsListenerContainerFactory;
import org.springframework.jms.config.JmsListenerContainerFactory;
import org.springframework.jms.listener.DefaultMessageListenerContainer;
import javax.jms.ConnectionFactory;
import javax.jms.Queue;
import javax.jms.Topic;

@Configuration
public class ActiveMQConfig {

    @Bean
    public Queue queue01() {
        return new ActiveMQQueue("liurq.queue.simple01");
    }

    @Bean
    public Queue queue02() {
        return new ActiveMQQueue("liurq.queue.simple02");
    }

    @Bean
    public Topic topic() {
        return new ActiveMQTopic("liurq.topic.simple");
    }

}
